package cn.topcodes.tcsf.cms.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 友情链接表单
 *
 * @author Unicorn
 * @date 2017-12-25 21:34:53
 */
@Data
public class FriendlyLinkForm implements Idable {

    private Long id;

    @NotNull(message = "名称不能为空")
    @Length(min = 1, max = 50, message = "名称长度为0~50个字符")
    private String name;

    @Length(min = 0, max = 200, message = "描述长度为0~200个字符")
    private String description;

    @NotNull(message = "URL不能为空")
    @Length(min = 0, max = 1000, message = "URL长度为0~1000个字符")
    private String url;

    @NotNull(message = "链接图片未上传")
    @Length(min = 5, max = 1000, message = "Logo未上传")
    private String logoUrl;

}